import request from '../utils/request'

// 护理记录接口
export const nursingApi = {
  // 获取护理记录列表
  getList(params: any) {
    return request({
      url: '/api/inpatient/nursing-records/',
      method: 'get',
      params
    })
  },

  // 获取护理记录详情
  getDetail(id: number) {
    return request({
      url: `/api/inpatient/nursing-records/${id}/`,
      method: 'get'
    })
  },

  // 创建护理记录
  create(data: any) {
    return request({
      url: '/api/inpatient/nursing-records/',
      method: 'post',
      data
    })
  },

  // 更新护理记录
  update(id: number, data: any) {
    return request({
      url: `/api/inpatient/nursing-records/${id}/`,
      method: 'put',
      data
    })
  },

  // 删除护理记录
  delete(id: number) {
    return request({
      url: `/api/inpatient/nursing-records/${id}/`,
      method: 'delete'
    })
  }
} 